package com.zhiyou.controller;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zhiyou.pojo.Company;
import com.zhiyou.service.CompanyService;

@Controller
@RequestMapping("/company")
public class CompanyController {
    @Autowired
    CompanyService cs;
	@RequestMapping("/getCname")
	@ResponseBody
	public List<Company> getCname(){
		System.out.println("ccccc");
		List<Company> list = cs.getAllCompany();
		System.out.println(list);
		return list;
	}
}
